from enum import Enum


class ContainerState(Enum):
    COLD_START = 100
    RUN = 101
    SPARE = 102
    KILL = 103


class Task(Enum):
    HANDLE_REQ = 200
    CON_COLD_START = 201
    CON_RUN = 202
    CON_SPARE = 203
    CON_KILL = 204
    CONSOLIDATION = 205
    SYS_CYCLE = 206


class ReqType(Enum):
    # COLLAR
    BODY_TEMPERATURE = 1001
    HEART_RATE = 1002
    RESPIRATION_RHYTHM = 1003
    ACTIVITY = 1004
    # BARN
    AIR_TEMPERATURE = 2001
    HUMIDITY = 2002
    METHANE = 2003
    HYDROGEN = 2004
    AMMONIA = 2005
    FORMALDEHYDE = 2006
    # BASE
    RAIN = 3001
    SOIL_TEMPERATURE = 3002
    SOIL_MOISTURE = 3003
    AIR = 3004
    RELATIVE_HUMIDITY = 3005
    WIND = 3006
    SOLAR_RADIATION = 3007


class SensorType(Enum):
    COLLAR = 1000
    BARN = 2000
    BASE = 3000


class OffloadDecision(Enum):
    LOCAL = 10
    EARS = 11
    NSGA2 = 12
    SCORE = 13
    SIMPLE = 14
    OFFLOAD_ALL = 15
    ECSOA_NSGA2 = 16
    RANDOM = 17
    FAAS_HOUSE = 18
    ECSOA = 19
